﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Download.aspx.cs" Inherits="MyPublisher.Web.Download" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPlaceHold" runat="server">
    <div style="padding: 0px 20px 20px 20px; text-align: left">
        <ul style="padding-bottom: 5px">
            <li><span class="tip">How to download?</span> <span>Find the needed document, and then
                click 'Download' link for each row.</span> </li>
        </ul>
        <asp:UpdatePanel runat="server">
            <ContentTemplate>
                <div style="padding-bottom: 5px">
                    <asp:DropDownList ID="SearchColumns" runat="server" Width="200" />
                    <asp:TextBox ID="SearchTextBox" runat="server" Width="250" />
                    <asp:ImageButton ID="SearchButton" runat="server" ImageUrl="~/App_Themes/Default/images/gosearch.gif"
                        OnClick="SearchButton_Click" />
                </div>
                <asp:GridView runat="server" ID="DocumentGrid" AllowPaging="false" AutoGenerateColumns="false"
                    Width="100%">
                    <EmptyDataTemplate>
                        <span class="tip" style="color:White">No documents found.</span>
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:BoundField HeaderText="ID" DataField="PublicationId" />
                        <asp:BoundField HeaderText="Data Provider" DataField="Provider" />
                        <asp:BoundField HeaderText="User Name" DataField="UserName" />
                        <asp:HyperLinkField HeaderText="Download" DataNavigateUrlFormatString="Download.aspx?p={0}"
                            DataNavigateUrlFields="PublicationId" Text="Download" />
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
